"""dprojx URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path, register_converter
from django.conf.urls import url,include
from dappx import views
from ids_encoder import converters

register_converter(converters.HashidsConverter, 'hashids')

urlpatterns = [
    path('admin/', admin.site.urls),
    url(r'^$', views.index,name='index'),
    url(r'^special/',views.special,name='special'),
    url(r'^dappx/', include('dappx.urls')),
    url(r'^logout/$', views.user_logout, name='logout'),
    path('deletelogs/<str:log_ids>', views.delete_logs),
    path('comment_update/<hashids:log_id>', views.comment_update),
    path('analyze/<hashids:log_id>', views.analyze_log),
    path('shared/<hashids:log_id>', views.access_share),
    path('sharetrack/<hashids:log_id>', views.share_track),
    path('genshare/<hashids:log_id>', views.share_log),
    path('api/genid/<int:log_id>', views.genid),
    path('analyze-operation/<int:log_id>', views.analyze_operation),
    path('fetch_summary/<int:log_id>', views.fetch_summary),
    path('fetch_description/<int:log_id>/<int:scanid>', views.fetch_description),
    path('fetch_knownissue/<int:log_id>', views.fetch_knownissue),
    path('fetch_knownissue_json/<int:log_id>', views.fetch_knownissue_json),
    path('fetch_memory/<int:log_id>', views.fetch_memory),
    path('fetch_memory_json/<int:log_id>', views.fetch_memory_json),
    path('fetch_memory_table/<str:processname>/<str:column>/<int:log_id>', views.fetch_memory_table_data),
    path('fetch_memory_detail/<str:processname>/<str:column>/<int:log_id>', views.fetch_memory_detail),
    path('fetch_process_table/<str:processname>/<int:log_id>', views.fetch_process_table),
    path('fetch_process_chart_data/<str:processname>/<int:log_id>', views.fetch_process_chart_data),
    path('fetch_propdiff/<int:log_id>', views.fetch_propdiff),
    path('fetch_propfile/<int:log_id>/<str:propname>', views.fetch_propfile),
    path('fetch_polling/<int:log_id>', views.fetch_polling),
    path('fetch_polling_json/<int:log_id>', views.fetch_polling_json),
    path('check_node_data_ready/<int:log_id>/<int:node_id>', views.check_node_data_ready),
    path('fetch_polling_page_detail/<int:log_id>/<int:node_id>/<str:node_name>', views.fetch_polling_page_detail),
    path('fetch_polling_detail_data/<int:log_id>/<int:node_id>', views.fetch_polling_detail_data),
    path('fetch/', views.fetch_table_data),
]
